<extend name="Public/base" />

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title cf">
        <h2>编辑</h2>
    </div>

    <form id="form" action="{:U('edit')}" method="post" class="form-horizontal">
				<input type="hidden" name="id" value="{$info.id|default=0}"/>

        <div class="form-item cf">
            <label class="item-label">
                名称
            </label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name}" />
            </div>
        </div>

        <div class="form-item cf">
            <label class="item-label">
                详细介绍
            </label>
            <div class="controls">
                <label class="textarea input-large">
                    <textarea name="details">{$info.details}</textarea>
                </label>
            </div>
        </div>

        <div class="form-item cf">
            <button class="btn submit-btn hidden ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <a class="btn btn-return" href="javascript:;">返 回</a>
        </div>
    </form>
</block>
